import app


class approveAPI():

    def __init__(self):
        self.approve_url = app.BASE_URL + '/member/realname/approverealname'
        self.getApprove_url = app.BASE_URL + '/member/member/getapprove'

    def approve(self, session, realname, cardId):
        data = {"realname": realname, "card_id": cardId}
        url = self.approve_url
        response = session.post(url, data, files={'x':'y'})
        return response

    def getApprove(self,session):
        url = self.getApprove_url
        response = session.post(url)
        return response
